from appium import webdriver


def init_driver():
    desired_caps = {'platformName': 'Android',
                    'platformVersion': '5',
                    'deviceName': 'emulator-5554',
                    'appPackage': 'com.android.contacts',
                    'appActivity': '.activities.PeopleActivity',
                    'unicodeKeyboard': True,
                    'resetKeyboard': True,
                    'noReset': True}
    driver = webdriver.Remote('http://localhost:4723/wd/hub', desired_caps)
    return driver
